package com.software.backend.login.service;

import com.software.backend.login.entity.UserExtends;

import javax.servlet.http.HttpSession;

/**
 * @author 王俊坤
 * @version 1.0
 * @date 2022/11/10 17:10
 */
public interface LoginService {

    public UserExtends loginByPhoneNumberAndPassword(String phoneNumber, String password);

    boolean createAndSendAuthCode(String phoneNumber, HttpSession session);

    String isPhoneRegister(String phoneNumber);

    boolean varifyAuthCode(String phoneNumber, String authCode, HttpSession session);

    UserExtends loginOrRegister(String phoneNumber, HttpSession session);
}
